package com.aaa.web.service.appstoreservice;

import com.aaa.entity.appstore.ElectromobileMessage;
import com.aaa.web.commons.Result;
import com.aaa.web.commons.SecondCarEntrepotQuery;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
* @program: ${PROJECT_NAME} 
* @description: 配件商城页面
* @author: 许一鑫
* @create: 9:34 2019/1/3
**/
public interface ElectromobilePartsService {

    /**
     * 获取所有配件商品信息,分页，搜索框
     * @param query
     * @return
     */
    Map getElectromobilePartsMessage(SecondCarEntrepotQuery query);

    /**
     * 获取所有配件商品信息,分页，搜索框
     * @param goodsname
     * @return
     */
    Result delGoods(String goodsname);

    /**
     * 上传照片
     * @param file
     * @return
     */
    Map uploadPhoto(MultipartFile file);

    /**
     * 添加新商品
     * @param e
     * @return
     */
    Result addNewGoods(ElectromobileMessage e);
}
